package com.xiamaliu.dc;

public class ClassPowerAdapter extends AC220 implements DC5{

    @Override
    public int outputDC5V() {
        int adapterInput = super.outputAC220V();
        int adapterOutput = adapterInput / 44;
        System.out.println("使用PowerAdapter适配器输入AC:" + adapterInput + "V" + "输出DC:" + adapterOutput + "V");
        return adapterOutput;
    }

}
